package sheji.jieGou.zuHe;

//叶子节点类
public class Employee implements Company {
    private String name;// 姓名
    private String position;// 职位
    private int salary;// 薪水

    // 构造函数
    public Employee(String name, String position, int salary) {
        this.name = name;
        this.position = position;
        this.salary = salary;
    }

    public String getInfo() {
        return "名称：" + name
                + "\t职位：" + position
                + "\t薪水: " + salary;
    }
}
